<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="${pageContext.servletContext.contextPath}/login" method="get">
    用户名：<input type="text" name="username" value=""><br>
    密码：<input type="password" name="password" value=""><br>
    爱好：<input type="checkbox" name="loves" value="篮球">篮球
    <input type="checkbox" name="loves" value="足球">足球
    <input type="checkbox" name="loves" value="乒乓球">乒乓球
    <input type="checkbox" name="loves" value="电影">电影 <br>
    <input type="submit">
</form>
</body>
</html>